package com.my.jli.dao;

import com.my.jli.entity.Exercise;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @ClassName ExerciseRepository
 * @Description
 * @Author MaYu
 * @Date 2022/4/10 22:17
 * @Version 1.0
 **/
public interface ExerciseRepository extends JpaRepository<Exercise, Integer> {
    List<Exercise> findByChapter(Integer chapterId);
}
